package Library.Events;

import java.awt.event.*;

/**
 *
 */
public class TimeEvent extends ActionEvent
{
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param time
     * @param totaltime
     */
    public TimeEvent(Object source, int id, String command, int time, int totaltime)
    {
	super(source, id, command);
	m_Time = time;
	m_TotalTime = totaltime;
    }
    
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param modifiers
     * @param time
     * @param totaltime
     */
    public TimeEvent(Object source, int id, String command, int modifiers, int time, int totaltime)
    {
	super(source, id, command, modifiers);
	m_Time = time;
	m_TotalTime = totaltime;
    }
    
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param when
     * @param modifiers
     * @param time
     * @param totaltime
     */
    public TimeEvent(Object source, int id, String command, long when, int modifiers, int time, int totaltime)
    {
	super(source, id, command, when, modifiers);
	m_Time = time;
	m_TotalTime = totaltime;
    }
    
    private int m_Time;
    /**
     *
     * @return
     */
    public int getTime()
    {
	return m_Time;
    }
    
    private int m_TotalTime;
    /**
     *
     * @return
     */
    public int getTotalTime()
    {
	return m_TotalTime;
    }
}
